package utils;

import java.util.Arrays;
import java.util.List;

/**
 * 用于控制台打印直接打印集合内容
 * @author lizihao
 *
 */
public class PrintOututil {
	public static <T> void readList(List<T> list) {
		
		for(T o : list) {
			if(o instanceof Object[]) {
				System.out.println(Arrays.toString((Object[])o));
			}else {
				System.out.print(String.valueOf(o)+" ");
			}
			
		}
		System.out.println();
	}
}
